/*
 * Classname: OperatorDao.java
 * 
 * Version information
 *
 * Date: 2007-6-28
 * 
 * Copyright DMX
 */

package com.dmx.fw.dao.interfaces;

import java.util.List;

import com.dmx.fw.bean.mapping.pojo.Operator;
import com.dmx.fw.dao.interfaces.Dao;
import com.dmx.fw.bean.mapping.pojo.ParameterData;;

/**
 * Description: Operator Dao
 * 
 * @author Peter Wei
 * @version 1.0 2007-6-28
 */
public interface OperatorDao extends Dao {
	/**
	 * save or update
	 * 
	 * @param operator
	 */
	public void saveOrUpdate(Operator operator);

	/**
	 * 根据操作员id,取得角色列表
	 * 
	 * @param optrId
	 * @return
	 */
	public List getRolesById(Long optrId);

	/**
	 * 根据登录名查找数据
	 * 
	 * @param loginName
	 * @return
	 */
	public List findByLoginName(String loginName);
	/**
	 * 操作员
	 * 
	 * @param loginName
	 * @return
	 */
	public List getOpratorTypes();

	public List getAllRoles();

	public ParameterData getParameterDataByCode(String code);
}
